import  angular from "angular";

//services
import Constant from  "./constants";
import EnventConstant from "./event.constant";
import ResponseService from "./response.service";
import AjaxErrorHandlerService from "./ajax-error-handler.service";
import ErrorService from "./error.service";
import LoggerService from './logger.service';
import Http from "./http";
import UserService from "./user.service";
import LotteryService from  "./lottery.service";
import DurationUtils from "./duration_utils";
import AccountService from  "./account.service";
import AgentService from  "./agent.service";


var services = angular.module("app.services",[]);
services.constant("Constant",Constant)
    .constant("Event",EnventConstant)
    .service("ResponseService",ResponseService)
    .service("Http",Http)
    .service("UserService",UserService)
    .service("AjaxErrorHandler",AjaxErrorHandlerService)
    .service("Error",ErrorService)
    .service('Logger', LoggerService)
    .service('LotteryService', LotteryService)
    .service('durationUtils', DurationUtils)
    .service('AccountService', AccountService)
    .service('AgentService', AgentService)

export  default services.name;